package com.huiminpay.merchant.convert;

import com.huiminpay.merchant.dto.MerchantDTO;
import com.huiminpay.merchant.vo.MerchantDetailVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @ClassName: MerchantRegisterConvert
 * @Package: com.huiminpay.merchant.convert
 * @Description: 对象转换类
 * @Author 谢同学
 * @Create 2023/11/19 11:47
 * @Version 1.0
 */
@Mapper
public interface MerchantDetailConvert {
    //MerchantRegisterConvert INSTANCE = Mappers.getMapper(MerchantRegisterConvert.class); //写完
    MerchantDetailConvert INSTANCE = Mappers.getMapper(MerchantDetailConvert.class);
    //将dto转成vo
    MerchantDetailVO dto2vo(MerchantDTO merchantDTO);
    //将vo转成dto
    MerchantDTO vo2dto(MerchantDetailVO merchantDetailVO);
}
